package heima;
import lombok.*;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class User {

    private String name;
    private String password;
    private String email;
    private String gender;
    private int age;

    @Override
    public String toString() {
        return this.name + "-" + this.gender;
    }

    public static void main(String[] args){
        User user = new User("xzy", "1", "1", "男", 15);
        user.setAge(16);
        System.out.println(user.toString());
    }
}
